package com.mmx.baseservice.system.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import java.util.Arrays;
import java.util.ArrayList;

/**
 * @author mmx generator
 * @since 2021-08-02
 */
@ApiModel(value="SysParams对象", description="系统参数表")
public class SysParams implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "参数名")
    @TableField("paramName")
    private String paramname;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "备注")
    private String remark;

    private Integer status;

    private Date createTime;

    public Long getId() {
        return id;
    }

    public SysParams setId(Long id) {
        this.id = id;
        return this;
    }
    public String getParamname() {
        return paramname;
    }

    public SysParams setParamname(String paramname) {
        this.paramname = paramname;
        return this;
    }
    public String getContent() {
        return content;
    }

    public SysParams setContent(String content) {
        this.content = content;
        return this;
    }
    public String getRemark() {
        return remark;
    }

    public SysParams setRemark(String remark) {
        this.remark = remark;
        return this;
    }
    public Integer getStatus() {
        return status;
    }

    public SysParams setStatus(Integer status) {
        this.status = status;
        return this;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public SysParams setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public static final String ID = "id";

    public static final String PARAMNAME = "paramName";

    public static final String CONTENT = "content";

    public static final String REMARK = "remark";

    public static final String STATUS = "status";

    public static final String CREATE_TIME = "create_time";

    @Override
    public String toString() {
        return "SysParams{" +
            "id=" + id +
            ", paramname=" + paramname +
            ", content=" + content +
            ", remark=" + remark +
            ", status=" + status +
            ", createTime=" + createTime +
        "}";
    }

    public final static String[] getFields(String ...noField){
        List<String> list = new ArrayList<>(Arrays.asList(
            SysParams.ID
            ,SysParams.PARAMNAME
            ,SysParams.CONTENT
            ,SysParams.REMARK
            ,SysParams.STATUS
            ,SysParams.CREATE_TIME
        ));
        list.removeAll(new ArrayList<>(Arrays.asList(noField)));
        return list.toArray(new String[0]);
    }
}